package com.panda.game.xls.component;

import javax.swing.*;
import java.awt.*;

public class MyJButton extends JButton {

    public MyJButton() {
        super();
        setDefaultSeting();
    }

    public MyJButton(int width, int height) {
        super();
        setSeting(width, height);
    }

    protected void setDefaultSeting() {
        MyFont font = MyFont.getInstance();
        setFont(font);
        Dimension preferredSize = new Dimension(300, 60);
        setPreferredSize(preferredSize);
    }

    protected void setSeting(int width, int height) {
        MyFont font = MyFont.getInstance();
        setFont(font);
        Dimension preferredSize = new Dimension(width, height);
        setPreferredSize(preferredSize);
    }

}
